﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 战棋模拟器
{//停止维护
    class 方阵指挥官:Minion
    {


        public 方阵指挥官():base()
        {
            buff = 2;
            Star = 3;
            Attack = 4;
            Health = 5;
        }

        //测试了是可以加自己的
        public override void Initialize()
        {
            foreach(Minion m in pool.places)
            {
                if (m == null)
                    break;
                if (m.Skills[2])
                    m.Attack += buff;
            }
        }


        public override void OnSpawn(Minion m)
        {
            if (m.Skills[2])
                m.Attack += buff;
        }


        public override void Die()
        {
            foreach (Minion m in pool.places)
            {
                if (m == null)
                    break;
                if (m.Skills[2])
                    m.Attack -= buff;
            }
            base.Die();
        }


        public override Minion NewOne()
        {
            return new 方阵指挥官();
        }
    }


    class 方阵指挥官_金色 : 方阵指挥官
    {
        public 方阵指挥官_金色() : base()
        {
            Attack *= 2;
            Health *= 2;
            count *= 2;
            buff *= 2;
        }

        public override Minion NewOne()
        {
            return new 方阵指挥官_金色();
        }
    }
}
